package com.neussoft.neu24.dibuy.service.impl;

import com.neussoft.neu24.dibuy.entity.DemoUser;
import com.neussoft.neu24.dibuy.repository.UserRepository;
import com.neussoft.neu24.dibuy.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;

/**
 * @program: learn
 * @description:
 * @author: Jingdi.Duan ,duanjingdi@msn.com
 * @create: 2024-07-10 15:36
 **/
@Service
public class UserServiceImol implements IUserService {
    @Autowired
    private UserRepository userRepository;

    public Mono<DemoUser> addUser(DemoUser user) {
        return userRepository.save(user);
    }
}
